// 用餐记录

import { Utility } from "@/libs/utility"

/**
 * form表单的格式配置
 *
 */
export const mealRecordForm = [
	{
		fieldName: "id",
		fieldCNName: "id",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "",
		span: 2,
	},
	{
		fieldName: "recipeId",
		fieldCNName: "套餐id",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "",
		// 可选，type为select时提供
		span: 2,
	},
	{
		fieldName: "examineeCode",
		fieldCNName: "受试者编号",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
		disabled: true,
		span: 2,
		rules: {
			required: true, // 只有为true的时候才写，为false这个字段不要
		},
	},
	{
		fieldName: "examineeName",
		fieldCNName: "受试者姓名",
		filedValue: "何思源1",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
		rules: {
			required: true, // 只有为true的时候才写，为false这个字段不要
		},
		disabled: true,
		span: 2,
	},
	{
		disabled: true,
		/** 字段名，如：name */
		fieldName: "randomNo",
		/** 字段对应的中文解释，如：姓名 */
		fieldCNName: "随机号",
		/** 字段的值，如：张三 */
		filedValue: 1,
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
		span: 2,
		rules: {
			required: true, // 只有为true的时候才写，为false这个字段不要
		},
	},
	{
		disabled: true,
		/** 字段名，如：name */
		fieldName: "groupSeq",
		/** 字段对应的中文解释，如：姓名 */
		fieldCNName: "入组顺序号",
		/** 字段的值，如：张三 */
		filedValue: 1,
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
		span: 2,
		rules: {
			required: true, // 只有为true的时候才写，为false这个字段不要
		},
	},
	{
		/** 字段名，如：name */
		fieldName: "diningTime",
		fieldNames: ["diningBeginTime", "diningEndTime"],
		/** 字段对应的中文解释，如：姓名 */
		fieldCNName: "进餐时间",
		/** 字段的值，如：张三 */
		filedValue: [], //     filedValue: ["2023-02-02", "2023-02-10"],
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,daterange,datetimerange,textarea,upload,select,radio,checkbox,switch*/
		type: "datetimerange",
		rules: {
			required: true, // 只有为true的时候才写，为false这个字段不要
		},
		span: 2,
	},
	{
		fieldName: "diningType",
		fieldCNName: "用餐类别",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "select",
		// 可选，type为select时提供
		itemList: Utility.getDictList("dining_type"),
		span: 2,
		rules: {
			required: true, // 只有为true的时候才写，为false这个字段不要
		},
	},
	{
		fieldName: "recipeType",
		fieldCNName: "餐谱套餐",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "select",
		// 可选，type为select时提供
		itemList: Utility.getDictList("combo_type"),
		span: 2,
		rules: {
			required: true, // 只有为true的时候才写，为false这个字段不要
		},
	},
	{
		fieldName: "recipeName",
		fieldCNName: "餐谱名称",
		filedValue: "",
		// placeholder: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "select",
		span: 2,
		itemList: [],
		rules: {
			required: true, // 只有为true的时候才写，为false这个字段不要
		},
	},
	{
		fieldName: "recipeContent",
		fieldCNName: "套餐内容",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "textarea",
		disabled: true,
	},
	// {
	// 	fieldName: "dish1",
	// 	fieldCNName: "菜品1",
	// 	filedValue: "",
	// 	/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
	// 	type: "inputText",
	// 	span: 2,
	// 	disabled: true,
	// },
	{
		fieldName: "dish1Surplus",
		fieldCNName: "菜品1剩余",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
		span: 2,
	},
	// {
	// 	fieldName: "dish2",
	// 	fieldCNName: "菜品2",
	// 	filedValue: "",
	// 	/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
	// 	type: "inputText",
	// 	span: 2,
	// 	disabled: true,
	// },
	{
		fieldName: "dish2Surplus",
		fieldCNName: "菜品2剩余",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
		span: 2,
	},
	// {
	// 	fieldName: "dish3",
	// 	fieldCNName: "菜品3",
	// 	filedValue: "",
	// 	/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
	// 	type: "inputText",
	// 	span: 2,
	// 	disabled: true,
	// },
	{
		fieldName: "dish3Surplus",
		fieldCNName: "菜品3剩余",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
		span: 2,
	},
	// {
	// 	fieldName: "dish4",
	// 	fieldCNName: "菜品4",
	// 	filedValue: "",
	// 	/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
	// 	type: "inputText",
	// 	span: 2,
	// 	disabled: true,
	// },
	{
		fieldName: "dish4Surplus",
		fieldCNName: "菜品4剩余",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
		span: 2,
	},
	// {
	// 	fieldName: "dish5",
	// 	fieldCNName: "菜品5",
	// 	filedValue: "",
	// 	/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
	// 	type: "inputText",
	// 	span: 2,
	// 	disabled: true,
	// },
	{
		fieldName: "dish5Surplus",
		fieldCNName: "菜品5剩余",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
		span: 2,
	},
	// {
	// 	fieldName: "stapleFood",
	// 	fieldCNName: "主食",
	// 	filedValue: "",
	// 	/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
	// 	type: "inputText",
	// 	span: 2,
	// 	disabled: true,
	// },
	{
		fieldName: "stapleFoodSurplus",
		fieldCNName: "主食剩余",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
		span: 2,
	},
	{
		fieldName: "surplusRemarks",
		fieldCNName: "剩余备注",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "textarea",
	},
	{
		fieldName: "remarks",
		fieldCNName: "异常备注",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "textarea",
	},
]
